package bb.lanxing.util.io;

class NameDescCombiner {
    public String name = "";
    public String desc = "";

    public void reset() {
        this.name = "";
        this.desc = "";
    }

    public String getContent() {
        StringBuilder sb = new StringBuilder();
        if (!this.name.equals("") && !this.desc.equals("")) {
            sb.append(this.name);
            sb.append("：");
            sb.append(this.desc);
        } else if (!this.name.equals("")) {
            sb.append(this.name);
        } else if (!this.desc.equals("")) {
            sb.append(this.desc);
        }
        return sb.toString();
    }
}